<div class="categories view">
<h3><?php echo $category['Category']['label']; ?></h3>
<p>Cree le : <?php echo $category['Category']['created']; ?></p>
<p>Derniere modification : <?php echo $category['Category']['modified']; ?></p>
</div>
<div class="actions">
	<p>Actions :</p>
	<ul>
		<li><?php echo $this->Html->link(__('Editer cette categorie', true), array('action' => 'edit', $category['Category']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Supprimer cette categorie', true), array('action' => 'delete', $category['Category']['id']), null, sprintf(__('Voulez vous vraiment supprimer "%s"?', true), $category['Category']['label'])); ?> </li>
		
	</ul>
</div>
<br />
<div class="related">
	<?php if (!empty($category['Cv'])):?>
	<h4><?php echo 'Liste des CV reli&eacute;s a la categorie : '.$category['Category']['label'];?></h4>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		
		<th><?php __('Titre'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('ID Etudiant'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($category['Cv'] as $cv):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $this->Html->link($cv['title'], array('controller' => 'cvs', 'action' => 'view', $cv['id']));?></td>
			<td><?php echo $cv['created'];?></td>
			<td align="center"><?php echo $cv['user_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Editer', true), array('controller' => 'cvs', 'action' => 'edit', $cv['id'])); ?>
				<?php echo $this->Html->link(__('Supprimer', true), array('controller' => 'cvs', 'action' => 'delete', $cv['id']), null, sprintf(__('Voulez vous vraiment supprimer "%s"?', true), $cv['title'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

</div>
